#usage: python3 install.py 'full;package;id;here' 'another;package;id;here'

import sys
import dbus

system_bus = dbus.SystemBus()

pk_object = system_bus.get_object("org.freedesktop.PackageKit", "/org/freedesktop/PackageKit")
pk_interface = dbus.Interface(pk_object, "org.freedesktop.PackageKit")

pk_transaction = pk_interface.CreateTransaction()

pk_transaction_object = system_bus.get_object("org.freedesktop.PackageKit", pk_transaction)
pk_transaction_interface = dbus.Interface(pk_transaction_object, "org.freedesktop.PackageKit.Transaction")

pk_transaction_interface.InstallPackages(2,sys.argv[1:])